﻿/*
 * Created by SharpDevelop.
 * User: mkrueger
 * Date: 25.03.2011
 * Time: 15:07
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;

using Chronicle.Analyzation;

namespace Chronicle.Gui
{
	/// <summary>
	/// Interaction logic for DetailsWindow.xaml
	/// </summary>
	public partial class DetailsWindow : Window
	{
		public DetailsWindow(AnalyzeModule module, Actor actor)
		{
			InitializeComponent();
			module.CreateDetailsView (listViewAbilities, listViewDetails, actor);
		}
		
		protected override void OnMouseLeave(MouseEventArgs e)
		{
			base.OnMouseLeave(e);
			var p = MainWindow.GetRiftProcess ();
			if (p != null)
				MainWindow.SetForegroundWindow (p.MainWindowHandle);
		}
		
	}
}